/**
 * 
 */
package com.ws.framework.zk;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * <p>
 * </p>
 *
 * @author WSH
 */
@Configuration
@ConfigurationProperties(prefix="")
@PropertySource("classpath:busi.properties")
public class ZkConfiguration {

	@Value("${zkAdress}")
	private String address;
	
	@Bean
	public CuratorClient curatorClient() {
		return new CuratorClient(address);
	}
}
